package com.manage.demo.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.manage.demo.dao.UserMapper;
import com.manage.demo.dao.model.UserInfo;
import com.manage.demo.dao.model.StudentInfo;
import com.manage.demo.util.ToolUtil;

@Service
@Transactional
public class UserService {

	@Autowired
	private UserMapper userMapper;
	public UserInfo getUserByCondition(String user_input, String pw_input) {
		return userMapper.getUserByCondition(user_input, pw_input); 
	}
	
	public StudentInfo getStudentByCondition(String user_id) {
		return userMapper.getStudentByCondition(user_id); 
	}
	
	public Map<String, Object> getTeacherByCondition(String user_id) {
		return userMapper.getTeacherByCondition(user_id); 
	}
	
}
